home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11738 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.0 KB

  1. Path: camelot.dsccc.com!kcline
  2. From: kcline@sun132.spd.dsccc.com (Kevin Cline)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Date: 15 Mar 1996 23:11:17 GMT
  6. Organization: DSC Communications Corporation Switch Products Division
  7. Message-ID: <4ictel$18v@tpd.dsccc.com>
  8. References: <00001a73+00002504@msn.com> <Pine.A32.3.91.960313165249.124278B-100000@red.weeg.uiowa.edu> <4i9ld6$m2v@rational.rational.com> <4iah20$p7k@saba.info.ucla.edu>
  9. NNTP-Posting-Host: sun132.spd.dsccc.com
  10.  
  11. In article <4iah20$p7k@saba.info.ucla.edu>,
  12. Jay Martin <jmartin@cs.ucla.edu> wrote:
  13. >rlk@rational.com (Bob Kitzberger) writes:
  14. >
  15. >>:   make is a _general_purpose_ utility.  It _can_ be used to manage C 
  16. >>: projects, or it can be used for a whole host of other things.  How is 
  17. >>: this hard to understand?  Does ADA provide its own OS, its own editor and 
  18. >>: its own hardware so that you never need to use anything else?
  19. >
  20. >>I don't think that anyone is having difficulty understanding your point.
  21. >>Make is indeed general purpose, but its roots are in the C/Unix
  22. >>culture, and those roots show.
  23. >
  24. >Right, make is mostly used to support development in C and other
  25. >primitive languages.  I have seen this piece of crap utility used for
  26. >all sort of braindead misuses.  
  27.  
  28. Make is horrible.  The distinction between tabs and spaces is the
  29. worst of all.  However, make has one big advantage over most other
  30. build utilities for compiled languages: it works.  In 1993 I was
  31. trying to use the build utilities suppied Verdix and Telesoft and
  32. Alsys Ada compilers, I became very, very fond of C and UNIX make; only
  33. one of the Ada make-equivalents (Verdix) worked at all.  Telesoft
  34. couldn't handle source files with more than one unit, even if no
  35. circular dependencies were created, and the LRM mandated the
  36. compilation of such files.  The Alsys AdaWorld system was a cruel
  37. joke played by the French on the U.S. DoD.
  38.  
  39. >Heh, I have seen people using Lex and Yacc to build parsers to read
  40. >in simple tables. 
  41. >Like swatting a bug with a sledge hammer (they ever heard of "scanf"?)
  42.  
  43. Maybe, but I personally find it much easier to maintain lex & yacc
  44. grammers which make the file syntax explicit, instead of trying to
  45. divine the syntax from scanf statements scattered throughout a dozen
  46. subroutines.
  47.  
  48. Lex and yacc are so useful that the DoD paid some good folks at 
  49. U Cal Irvine to convert flex and bison (the GNU versions of lex and yacc)
  50. from C to Ada.  I used them, they worked well, and saved me much
  51. aggravation trying to do the same thing at the Ada Standard I/O level. 
  52.  
  53. The scanf programmers tend to define their input file syntax to make
  54. it easy to parse, rather than easy to read, and then resist all
  55. suggestions to extend the syntax for user convenience.
  56.  
  57. >By the way after 10+ years of using Unix I am
  58. >having trouble thinking of a standard Unix utility that is not a
  59. >total misdesigned piece of crap!  Maybe someone can help me.
  60.  
  61. I agree.  They are all horrible.  The only thing worse is working on
  62. systems like VAX/VMS or MS/DOS which have no utilities at all.
  63.  
  64. -- 
  65. Kevin Cline
  66.